package com.file.system.mapper.business;

import com.file.system.entity.business.BusUtensilIndent;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
* 器具订单 Mapper 接口
* @author jch
* @since 2023-11-02
*/
@Mapper
public interface BusUtensilIndentMapper{

    //添加器具订单
    int save(BusUtensilIndent busUtensilIndent);

    //编辑器具订单
    int update(@Param("ew") UpdateWrapper<BusUtensilIndent> query);

    //编辑器具订单
    int updateById(BusUtensilIndent busUtensilIndent);

    //添加器具订单(批量)
    int saveBatch(@Param("list") List<BusUtensilIndent> busUtensilIndentList);

    //通过id删除器具订单
    int removeById(BusUtensilIndent busUtensilIndent);

    //通过id查询器具订单
    BusUtensilIndent selectById(@Param("id") Long id);

    //查询器具订单
    List<BusUtensilIndent> select(@Param("ew") QueryWrapper<BusUtensilIndent> query);

    //查询器具订单分页
    List<BusUtensilIndent> select(Page<BusUtensilIndent> page, @Param("ew") QueryWrapper<BusUtensilIndent> query);

    //查询器具订单数量
    int selectCount(@Param("ew") QueryWrapper<BusUtensilIndent> query);
}
